import os
import unittest
from htmltestreport import HTMLTestReport
from config import DIR_PATH
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
suite = unittest.defaultTestLoader.discover("./script")
file_path = DIR_PATH + os.sep + 'report' + os.sep + '测试报告.html'
HTMLTestReport(file_path).run(suite)
